<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>循环遍历指令</title>
    <!-- 引用vue.js库 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <div id="app">
       <ul>
           <!-- <li v-for="value in object">
               {{value}}
           </li> -->

           <li v-for="(value,key,index) in object">
               {{value}}:{{key}}:{{index}}
           </li>
       </ul>
    </div>
    <script>
        let vm = new Vue({
            // 根据id获取到容器div
            el:"#app",
            // data表示数据
            data:{
                object:{
                    firstName:"tom",
                    lastName:"Doe",
                    age:30
                }
            },
            methods:{
                //点击某些按钮要触发的函数(方法)              
            }
        });
    </script>
    
</body>
</html>